﻿module Sustainalytics.EsgRatings {

    import Common = Sustainalytics.Common;
    import Charts = Sustainalytics.Charts;

    export class EsgSummaryController {

        constructor(
            private $scope: ng.IScope,
            private $q: ng.IQService,
            private $timeout: ng.ITimeoutService) {

            var ctx = this;

            // set current controller instance to scope
            $scope['esgSummary'] = ctx;

            // init controller
            ctx.init();
        }

        // init logic
        private init(): ng.IPromise<any> {
            var ctx = this;

            return ctx.$q.when(null);
        }
    }


    angular.module(esgRatingsModuleName).controller('EsgSummaryController',
        ['$scope', '$q', '$timeout', EsgSummaryController]);
} 